home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
- Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
- Date: 9 Apr 1996 20:06:41 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4kf8k1INN68b@keats.ugrad.cs.ubc.ca>
- References: <JSA.96Feb16135027@organon.com> <dewar.829051685@schonberg> <829066525snz@genesis.demon.co.uk> <dewar.829096975@schonberg>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <dewar.829096975@schonberg>, Robert Dewar <dewar@cs.nyu.edu> wrote:
- >Linux simply checks that the end of the buffer is in the memory area,
- >which is not the check you would like to see. That's what I was talking
- >about when I noted that this kind of uncertainty would not occur in
- >a language with a reasonably complete type model.
-
- Precisely. The kernel defends itself against making a faulty dereference that
- would trigger an exception, but will happily corrupt your valid data, unless
- stated buffer range sticks over into an unmapped page.
-
- >What exactly *is* the wording of the POSIX standard here (Lawrence, you
- >must have it at hand, please quote it exactly). The interesting thing
- >is to determine whether this definition says enough to make *any* use
- >of read defined without appealing to "unwritten rules". I would guess
- >not!
-
- Unwritten rules, or paranoia. Take your pick! (Door #2 for me, please)
-
- The standard is basically very good at telling you what the functions do.
-
- BTW, I checked the Ada POSIX standard too, but that reads like a VCR manual
- from 1984. ;) heh
- --
-
-